﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using System.ServiceModel.Web;

namespace S2S.MobileAPIService
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "IMobileAPIService" in both code and config file together.
    [ServiceContract]
    public interface IMobileAPIService
    {
        [OperationContract]
        [WebGet(UriTemplate = "Customers")]
        List<Customer> GetCustomers();

        //[OperationContract]
        //[WebGet(UriTemplate = "Customers/{id}")]
        //Customer GetCustomer(string id);

        //[OperationContract]
        //[WebInvoke(UriTemplate = "Customers", Method = "POST")]
        //void CreateCustomer(string name);

        //[OperationContract]
        //[WebInvoke(UriTemplate = "Customers/{id}", Method = "PUT")]
        //void UpdateCustomer(string id, Customer customer);

        //[OperationContract]
        //[WebInvoke(UriTemplate = "Customers/{id}", Method = "DELETE")]
        //void DeleteCustomer(string id);
    }
}
